package ca.uvic.group2.api;

import java.io.*;

public class Trigger implements Serializable {

    public static final int BUY = 0;
    public static final int SELL = 1;

    public int id;
    public String username;
    public int kind;
    public String stock;
    public float amount;
    public float stockPrice;
    public long timestamp;

    public Trigger(int kind) {
        this.kind = kind;
        timestamp = System.currentTimeMillis();
    }

    public Trigger(Trigger src) {
        this.id = src.id;
        this.username = src.username;
        this.kind = src.kind;
        this.stock = src.stock;
        this.amount = src.amount;
        this.stockPrice = src.stockPrice;
        this.timestamp = src.timestamp;
    }

}
